<?php
class Base_admin extends CI_Controller{
	
    var $view_folder='leo-admin/';

	function __construct($view_floder=''){
	  parent::__construct();
	  if($view_floder){
	  	$this->view_folder=$view_floder;
	  }
	}
     
	 
	public function display_view($str,$data=''){
		if($data){
			$this->load->view($this->view_folder.$str,$data);
		}else{
			$this->load->view($this->view_folder.$str);
		}	
	}
}